//
//  AFNetworkResponseProtocol.h
//  TBNetworking
//
//  Created by apple on 2018/8/8.
//  Copyright © 2018年 lzb. All rights reserved.
//


#import <Foundation/Foundation.h>

@class BaseResquestModel;
@class BaseResponseModel;
/**
 网络请求响应协议,同时也可以使用block
 */
@protocol AFNetworkResponseProtocol <NSObject>

@optional

/**
 请求成功返回回调
 */
- (void)networkRequest:(BaseResquestModel *)request succeedResponse:(BaseResponseModel *)responseResult;


/**
 请求失败的回调
 */
- (void)networkRequest:(BaseResquestModel *)request   failResponse:(BaseResponseModel *)responseResult  error:(NSError *)error;

/**
 *   请求进度的回调，一般适用于上传文件
 
 *  @param progress       进度
 */
- (void)networkRequest:(BaseResquestModel *)request requestProgress:(NSProgress *)progress;

@end

